<template>
  <div class="navbar">
    <div class="title">{{ title }}</div>
    <div class="operate">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: 'Navbar',
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.navbar{
  height: 50px;
  width: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  .title{
    font-size: 18px;
    color: #040404;
    letter-spacing: 0;
    line-height: 50px;
    font-weight: 400;
    padding-left: 15px;
    height: 100%;
  }
  .operate{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-right: 15px;
  }
}

</style>
